<?php
$news = $this->news;
$query = $this->query;
$total = (int)$this->total;
?>

Вы искали: <?php echo $this->escape($query); ?>. Всего результатов: <?php echo $total ?>.

<?php if (is_array($news)): ?>
<? foreach ($news as $article): ?>

    <div class="row" style="margin: 10px;margin-left: 4px;">
        <div class="img" style="float: left;margin-right: 5px;">
            <?php if (empty($article['img'])): ?>
            <img src="http://placehold.it/100x100">
            <?php else: ?>
            <img src="<?php echo $this->image($article['img']) ?>" alt="<?php echo $article['title'] ?>">
            <?php endif;  ?>
        </div>
        <div>
            <h3 style="line-height: 18px;"><a href="/index/news/id/<?php echo $article['id'] ?>">
                <?= $article['title'] ?>
            </a></h3>

            <div>
                <?= $article['snippet'] ?>
            </div>
        </div>
    </div>
    <tr>
        <!--        <td>-->
        <!--            <a href="/index/news/id/--><?php //echo $article['id'] ?><!--">-->
        <!--            --><?//= $article['title'] ?>
        <!--            </a>-->
        <!--        </td>-->
        <!--        <td>--><?//= $article['content'] ?><!--</td>-->
        <!--        <td>--><?//= $article['publishDate']->format('Y-m-d')?><!--</td>-->
        <!--        <td>--><?//= $article['rubric']['name'] ?><!--</td>-->
        <!--        <td>-->
        <!--            <ul>-->
        <!--                --><?// foreach($article['tags'] as $tag): ?>
        <!--                <li><a href="/search/tag/id/--><?//= $tag['id'] ?><!--">-->
            <?//= $tag['name'] ?><!--</a></li>-->
        <!--                --><?// endforeach; ?>
        <!--            </ul>-->
        <!--        </td>-->
        <!--        <td><a href="#" class="comments" id="comment_--><?//= $article['id'] ?><!--">Comments(-->
            <?//= $article['comments_count'] ?><!--)</a></td>-->
    </tr>
    <? endforeach; ?>
<?php endif; ?>

<?php if (isset($this->paginator)): ?>
    <?php echo $this->partial('/paginator/common.phtml', array('paginator' => $this->paginator)) ?>
<?php endif; ?>

